package com.learn.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * Description
 *
 * @author zhaohongyu
 * @ClassName LNew
 * @date 2021.05.31 09:22
 * @describe 新闻实体类
 */
@TableName("l_new")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LNew对象", description="")
public class LNew implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "new_id", type = IdType.AUTO)
    private Integer newId;

    @ApiModelProperty(value = "新闻标题")
    @TableField("new_title")
    private String newTitle;

    @ApiModelProperty(value = "新闻内容")
    @TableField("new_text")
    private String newText;

    @ApiModelProperty(value = "新闻图片")
    @TableField("new_cover")
    private String newCover;

    @TableField("new_top")
    private Integer newTop;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user")
    private String createUser;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_user")
    private String updateUser;

    @TableField("release_time")
    private Date releaseTime;

    @TableField("release_state")
    private String releaseState;

    @TableField(exist = false)
    private String userName;

    public Integer getNewTop() {
        return newTop;
    }

    public void setNewTop(Integer newTop) {
        this.newTop = newTop;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }

    public String getReleaseState() {
        return releaseState;
    }

    public void setReleaseState(String releaseState) {
        this.releaseState = releaseState;
    }

    public Integer getNewId() {
        return newId;
    }

    public void setNewId(Integer newId) {
        this.newId = newId;
    }

    public String getNewTitle() {
        return newTitle;
    }

    public void setNewTitle(String newTitle) {
        this.newTitle = newTitle;
    }

    public String getNewText() {
        return newText;
    }

    public void setNewText(String newText) {
        this.newText = newText;
    }

    public String getNewCover() {
        return newCover;
    }

    public void setNewCover(String newCover) {
        this.newCover = newCover;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }
}
